<?php
$qiniu_data = require 'qiniu_data.php';
$app_data = require 'app_data.php';
$config = [
	'DB_TYPE'   => arr_get($_ENV,'DB_TYPE'),
	'DB_HOST'   => arr_get($_ENV,'DB_HOST'),
	'DB_NAME'   => arr_get($_ENV,'DB_NAME'),
	'DB_USER'   => arr_get($_ENV,'DB_USER'),
	'DB_PWD'    => arr_get($_ENV,'DB_PWD'),
	'DB_PORT'   => arr_get($_ENV,'DB_PORT'),
	'DB_PREFIX' => arr_get($_ENV,'DB_PREFIX',''),

	"AUTHCODE"       => 'yj0M6MxTQoU5TuIYNshk',
	/* SESSION 和 COOKIE 配置 */
	'SESSION_PREFIX' => 'hongxin_web_user',
	'COOKIE_PREFIX'  => 'hongxin_web_user_',

	"URL_CASE_INSENSITIVE" => false,

	/*模板解析配置*/
	'TMPL_L_DELIM'         => '{#',
	'TMPL_R_DELIM'         => '}',

	/*定义文件上传目录*/
	'CY_UPLOAD_ROOT'       => __ROOT__.'/Data/upload',
	// 允许访问的模块列表
	'MODULE_ALLOW_LIST'    => ['Home', 'Api', 'Admin'],
	'DEFAULT_MODULE'       => 'Home',  // 默认模块
	'MODULE_DENY_LIST'     => ['Common', 'Runtime'],
	//数据库备份配置
	'DB_PATH_NAME'         => 'backup',        //备份目录名称,主要是为了创建备份目录
	'DB_PATH'              => './Data/backup/',     //数据库备份路径必须以 / 结尾；
	'DB_PART'              => '20971520',  //该值用于限制压缩后的分卷最大长度。单位：B；建议设置20M
	'DB_COMPRESS'          => '1',         //压缩备份文件需要PHP环境支持gzopen,gzwrite函数        0:不压缩 1:启用压缩
	'DB_LEVEL'             => '9',         //压缩级别   1:普通   4:一般   9:最高
	'DB_CHARSET'           => 'utf8', // 数据库编码
];
return array_merge($app_data, $qiniu_data, $config);
